﻿namespace DoNet.Platform.TaoBao.Model
{
    /// <summary>
    /// 
    /// </summary>
    public class TokenInfo
    {
        /// <summary>
        /// Access token
        /// </summary>
        public string access_token { set; get; } = string.Empty;
        /// <summary>
        /// Access token的类型目前只支持bearer  Bearer
        /// </summary>
        public string token_type { set; get; } = string.Empty;
        /// <summary>
        /// Access token过期时间 10（表示10秒后过期）
        /// </summary>
        public int expires_in { set; get; }
        /// <summary>
        /// Refresh token
        /// </summary>
        public string refresh_token { set; get; } = string.Empty;
        /// <summary>
        /// Refresh token过期时间 10（表示10秒后过期）
        /// </summary>
        public int re_expires_in { set; get; }
        /// <summary>
        /// r1级别API或字段的访问过期时间 10（表示10秒后过期）
        /// </summary>
        public int r1_expires_in { set; get; }
        /// <summary>
        /// r2级别API或字段的访问过期时间 10（表示10秒后过期）
        /// </summary>
        public int r2_expires_in { set; get; }
        /// <summary>
        /// w1级别API或字段的访问过期时间 10（表示10秒后过期）
        /// </summary>
        public int w1_expires_in { set; get; }
        /// <summary>
        /// w2级别API或字段的访问过期时间 10（表示10秒后过期）
        /// </summary>
        public int w2_expires_in { set; get; }
        /// <summary>
        /// 淘宝账号
        /// </summary>
        public string taobao_user_nick { set; get; } = string.Empty;
        /// <summary>
        /// 淘宝帐号对应id
        /// </summary>
        public string taobao_user_id { set; get; } = string.Empty;
        /// <summary>
        /// 淘宝子账号对应id
        /// </summary>
        public string sub_taobao_user_id { set; get; } = string.Empty;
        /// <summary>
        /// 淘宝子账号
        /// </summary>
        public string sub_taobao_user_nick { set; get; } = string.Empty;
    }
}
